import { mapState, mapActions } from "vuex";
import { baseFileds } from "../options";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState("options", ["personList"]),
    fileds() {
      return baseFileds(
        "detail",
        this.formData.publishScope,
        this.personList,
        this.receiptStatus
      );
    },
    subFileds() {
      return this.formData.receiptStatus === "UNDO"
        ? [
            {
              key: "receiptMemo",
              filedType: "Input",
              label: "填写回执",
              span: 24,
              props: {
                placeholder: "填写回执",
                type: "textarea",
              },
            },
          ]
        : [];
    },
  },
  created() {},
  methods: {
    ...mapActions("options", ["getPerson"]),
  },
};
